package com.fsquare.ext.domain;

import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.broadleafcommerce.common.presentation.AdminPresentationClass;
import org.broadleafcommerce.core.catalog.domain.SkuImpl;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.fsquare.inventory.domain.SkuInventory;
import com.fsquare.inventory.domain.SkuInventoryImpl;

//@Entity
//@Inheritance(strategy = InheritanceType.JOINED)
//@Table(name = "EXT_BLC_SKU")
//@Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region = "blStandardElements")
//@AdminPresentationClass(friendlyName = "baseSku")
public class SkuExtImpl extends SkuImpl {
	
	@OneToOne(optional = true, targetEntity = SkuInventoryImpl.class)
	@JoinColumn(name = "INVENTORY_ID", referencedColumnName = "ID")
    protected SkuInventory skuInventory;

	public SkuInventory getSkuInventory() {
		return skuInventory;
	}

	public void setSkuInventory(SkuInventory skuInventory) {
		this.skuInventory = skuInventory;
	}
}
